package com.daxue.lcm.api.grpc.utis;

import lombok.experimental.UtilityClass;

/**
 * @author daxue0929
 * @date 2022/10/9
 */

@UtilityClass
public class GrpcExceptionCode {
    public static final int OK = 0;

    public static final int GENERAL_GRPC = 110000;

    public static final int WRONG_CONTENT = GENERAL_GRPC + 400;
    public static final int DEADLINE_EXCEED = GENERAL_GRPC + 408;
    public static final int BAD_CONNECTION = GENERAL_GRPC + 503;

    public static final int GENERAL_SERVICE = 100000;

    public static final int BAD_ARGUMENT = GENERAL_SERVICE + 400;
    public static final int NOT_FOUND = GENERAL_SERVICE + 404;
    public static final int TIMEOUT = GENERAL_SERVICE + 408;
    public static final int CONFLICT = GENERAL_SERVICE + 409;

    public static final int EXTERNAL_SERVICE = 130000;
    public static final int PRODUCE_FAIL = EXTERNAL_SERVICE + 400;


}
